home *** CD-ROM | disk | FTP | other *** search
/ Sunrise Express Series 285 / Sunrise Express Series 285.iso / pc / JR.Dxr / 00032_Go to Previous Marker.ls < prev    next >
Encoding:
Text File  |  1998-05-11  |  842 b   |  37 lines

  1. property whichevent
  2.  
  3. on initGotoPreviousMarker me
  4.   init(me)
  5. end
  6.  
  7. on mouseUp me
  8.   if whichevent = #mouseUp then
  9.     init(me)
  10.   end if
  11. end
  12.  
  13. on prepareFrame me
  14.   if whichevent = #prepareFrame then
  15.     init(me)
  16.   end if
  17. end
  18.  
  19. on exitFrame me
  20.   if whichevent = #exitFrame then
  21.     init(me)
  22.   end if
  23. end
  24.  
  25. on init me
  26.   go(marker(-1))
  27. end
  28.  
  29. on getPropertyDescriptionList
  30.   set p_list to [#whichevent: [#comment: "Initializing Event:", #format: #symbol, #range: [#mouseUp, #prepareFrame, #exitFrame, #initGotoPreviousMarker], #default: #mouseUp]]
  31.   return p_list
  32. end
  33.  
  34. on getBehaviorDescription
  35.   return "Moves the Playback Head to the previous marker when the specified event occurs.  Drag to a sprite or a frame in the script channel." && RETURN & "PARAMETERS:" && RETURN & "窶「 Initializing Event - Specify the event that triggers the behavior."
  36. end
  37.